package cn.com.shadowless.xinning.callback;

import cn.com.shadowless.xinning.model.RequestResult;

/**
 * The interface Application call back.
 *
 * @param <T> the type parameter
 * @author sHadowLess
 */
public interface RequestCallBack<T> {
    /**
     * Success.
     *
     * @param result the result
     */
    void success(RequestResult<T> result);

    /**
     * Fail.
     *
     * @param errorMsg the error msg
     */
    void fail(String errorMsg);
}
